package cn.ym.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 数据字典明细
 * </p>
 *
 * @author 210513347@qq.com
 * @since 2023-05-04
 */
@TableName("t_systemdictionaryitem")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Systemdictionaryitem extends Model<Systemdictionaryitem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("parent_id")
    private Long parentId;

    @TableField(exist = false)//排除掉 不是数据库的字段
    private Systemdictionary systemdictionary;


    private String name;
    /**
     * 排序
     */
    private Integer requence;
    private String intro;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
